package com.example.yuekao.adapter;

import android.content.Context;
import android.media.MediaMetadata;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.mvp.adapter.BaseAdapter;
import com.example.mvp.adapter.BaseViewHolder;
import com.example.yuekao.R;
import com.example.yuekao.bean.Bean;

import java.util.List;

public class MyAdapter extends BaseAdapter<Bean.ListBean> {
    public MyAdapter(List<Bean.ListBean> datas, Context context, int layoutId) {
        super(datas, context, layoutId);
    }

    @Override
    protected void bindData(BaseViewHolder holder, Bean.ListBean listBean) {
         ImageView panfang = holder.getView(R.id.panfang);
         ImageView jiashu = holder.getView(R.id.jiashu);
         ImageView hangqing = holder.getView(R.id.hangqing);
         ImageView yingshi = holder.getView(R.id.yingshi);
        Glide.with(context).load(listBean.getThumb()).into(panfang);


    }
}
